package com.xci.xajtfb.bus.dao;

import com.github.lvyanyang.annotation.Paging;
import com.xci.xajtfb.bus.entity.WxComplaint;
import com.xci.xajtfb.bus.filter.WxComplaintFilter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 出租投诉信息表数据层
 * @author 张谦 765870682@qq.com
 * @since 2021-03-02 9:40:00
 */
public interface WxComplaintDao {
	/**
	 * 新建出租投诉信息表
	 * @param entity 数据对象
	 * @return 返回影响的行数
	 */
	int insert(@Param("entity") WxComplaint entity);

	/**
	 * 根据主键查询单个出租投诉信息表 
	 * @param complaintId 主键
	 * @return 返回单个数据对象
	 */
	WxComplaint selectById(@Param("complaintId") String complaintId);

	/**
	 * 查询出租投诉信息表分页列表
	 * @param filter 过滤条件
	 * @return  返回符合条件的分页数据集合
	 */
    /*
        allowSortNames = {"jpyhbs","name","name_spell","license_number","social_credit_code","legal_person","legal_person_number","economic_nature","principal","tel","province","city","district","street","village","opening_date","company_level","xz","enrollment_scope","training_methods","industry_commerce_bureau","training_ground_nature","operate_status","business_type","annua_review_year","business_scope_name","business_scope_code","issuing_dept","issue_date","area_code","area_name","expiry_startdate","expiry_enddate","audit_date","audit_status","audit_opinion","audit_name","input_sources","business_audit_status","business_audit_date","business_audit_opinion","business_audit_name","dept_id","longitude","dimension","gdzcyz","working_capital","gdzcjy","lljs_area","jsjjs_area","dasjs_area","mmqjs_area","jjjs_area","computer_count","mnq_count","teach_aids_count","id_type_legal_person","create_user_id","create_user_name","create_date_time","update_user_id","update_user_name","update_date_time","remark"},
        sortNameMaps = {"jpyhbs:jpyhbs","name:name","name_spell:name_spell","license_number:license_number","social_credit_code:social_credit_code","legal_person:legal_person","legal_person_number:legal_person_number","economic_nature:economic_nature","principal:principal","tel:tel","province:province","city:city","district:district","street:street","village:village","opening_date:opening_date","company_level:company_level","xz:xz","enrollment_scope:enrollment_scope","training_methods:training_methods","industry_commerce_bureau:industry_commerce_bureau","training_ground_nature:training_ground_nature","operate_status:operate_status","business_type:business_type","annua_review_year:annua_review_year","business_scope_name:business_scope_name","business_scope_code:business_scope_code","issuing_dept:issuing_dept","issue_date:issue_date","area_code:area_code","area_name:area_name","expiry_startdate:expiry_startdate","expiry_enddate:expiry_enddate","audit_date:audit_date","audit_status:audit_status","audit_opinion:audit_opinion","audit_name:audit_name","input_sources:input_sources","business_audit_status:business_audit_status","business_audit_date:business_audit_date","business_audit_opinion:business_audit_opinion","business_audit_name:business_audit_name","dept_id:dept_id","longitude:longitude","dimension:dimension","gdzcyz:gdzcyz","working_capital:working_capital","gdzcjy:gdzcjy","lljs_area:lljs_area","jsjjs_area:jsjjs_area","dasjs_area:dasjs_area","mmqjs_area:mmqjs_area","jjjs_area:jjjs_area","computer_count:computer_count","mnq_count:mnq_count","teach_aids_count:teach_aids_count","id_type_legal_person:id_type_legal_person","create_user_id:create_user_id","create_user_name:create_user_name","create_date_time:create_date_time","update_user_id:update_user_id","update_user_name:update_user_name","update_date_time:update_date_time","remark:remark"}
    */
    @Paging
    List<WxComplaint> selectPageList(@Param("filter") WxComplaintFilter filter);


    /**
     * 查询序列表
     * @param date 日期（yyyyMMdd）
     * @return 返回影响的行数
     */
    int selectWxSerialBydate(@Param("date") String date);
    /**
     * 新建 序列表
     * @param date 日期（yyyyMMdd）
     * @param date 日期（yyyyMMdd）
     * @return 返回影响的行数
     */
    int insert(@Param("date") String date,@Param("date") String serial);
}
